﻿using System;
using System.Windows;

namespace SBPweb.MediaCenter.Tools.WPF.Extenders
{

    public class TagDictionary : Common.Extenders.TagDictionary
    {

        public static readonly DependencyProperty TagProperty = DependencyProperty.RegisterAttached(
            "Tag",
            typeof(TagDictionary),
            typeof(DependencyObject)
        );

        public static TagDictionary GetTag(DependencyObject obj)
        {
            return obj.GetValue(TagProperty) as TagDictionary;
        }

        public static void SetTag(DependencyObject obj)
        {
            SetTag(obj, new TagDictionary());
        }

        public static void SetTag(DependencyObject obj, TagDictionary tag)
        {
            obj.SetValue(TagProperty, tag);
        }

    }

}